{% extends "layouts/freamwork.html" %}

{% block body %}
    <h1> 欢迎回来，{{ user.uname }} </h1>
    <img src="{{ url_for( 'static', filename='imgs/zhanyi.jpg' ) }}" width="150px" height="150px" />

    <table style="margin-top:20px;">
        <thead>
            <tr>
                <th width="10%" style="ailgn:left">编号</th>
                <th width="15%">姓名</th>
                <th width="10%">邮箱</th>
                <th width="20%">密码</th>
                <th width="30%">创建时间</th>
            </tr>
        </thead>
        <tbody>
        {% for item in list %}
        <tr>
            <td>{{ item.id }}</td>
            <td>{{ item.name }}</td>
            <td>{{ item.email }}</td>
            <td>{{ item.password }}</td>
            <td>{{ item.created_at }}</td>
        </tr>
        {% endfor %}
        </tbody>
    </table>

{% endblock %}